package com.kjj.car.service.impl;

import com.kjj.car.domain.CarDetail;
import com.kjj.car.mapper.CarDetailMapper;
import com.kjj.car.service.ICarDetailService;
import com.kjj.basic.service.impl.BaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author kan
 * @since 2022-09-08
 */
@Service
public class CarDetailServiceImpl extends BaseServiceImpl<CarDetail> implements ICarDetailService {

    @Autowired
    private CarDetailMapper carDetailMapper;
    @Override
    public CarDetail getByCarId(Long id) {
        return carDetailMapper.loadByCarId(id);
    }

    @Override
    public void delByCarId(Long id) {
        carDetailMapper.removeByCarId(id);
    }
}
